// Brian Malloy        Game Construction

#include "controller.h"
IOManager *IOManager::instance = NULL;
Gamedata* Gamedata::instance = NULL;
SDLSound* SDLSound::instance = NULL;
FrameFactory* FrameFactory::instance = NULL;
MultiFrameFactory* MultiFrameFactory::instance = NULL;

int main(int, char*[]) {
   try {
      Controller controller;
     controller.drawBackground();
     string action = controller.menu();
	  std::cout<<action<<std::endl;
	  SDL_Delay(1250);
	if(action == "New")
	  controller.play();
   }
   catch (const string& msg) { std::cout << msg << std::endl; }
   catch (...) {
      std::cout << "Oops, someone threw an exception!" << std::endl;
   }
   return 0;
}
